Skip to main content

textAlign

Type

property

Summary

Specifies the alignment that the text displayed in the label has with respect to the sides of the button.

Syntax

set the textAlign of widget to { left | center | right }
get the textAlign of widget

Description

Use the textAlign property to specify the alignment that the text displayed in the label has with respect to the sides of the button.

Examples

set the textAlign of widget "Button" to "center"

Compatibility and Support

OS

mac

windows

linux

ios

android

web

Platforms

desktop

mobile